<template>
    <div class="profile-page">
  
      <!-- 个人信息区域 -->
      <div class="profile-header">
        <img class="bg-image" src="../assets/images/my_bgc.jpg" alt="背景图" />
        <div class="header-content">
          <!-- 左侧头像和信息 -->
          <div class="user-info">
            <img class="avatar" src="https://p0.meituan.net/ingee/a29ea7a6829bbee66caa6da8bb0928dc14919.png" />
            <div class="user-text">
              <div class="nickname">等日落</div>
              <div class="location">天津 <span class="edit">[编辑资料]</span></div>
              <div class="user-stats">
                <div class="stat-item">
                  <span class="num">0</span>
                  <span class="label">关注</span>
                </div>
                <div class="stat-item">
                  <span class="num">0</span>
                  <span class="label">粉丝</span>
                </div>
                <div class="stat-item">
                  <span class="num">0</span>
                  <span class="label">获赞</span>
                </div>
              </div>
            </div>
          </div>
  
          <!-- 导航栏 -->
          <div class="nav-container">
            <div class="user-nav">
              <button class="nav-btn active">首页</button>
              <button class="nav-btn">评价</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
  </script>
  
  <style scoped>
  .profile-page {
    background-color: #f5f5f5;
    padding-top: 1px;
  }
  
  .profile-header {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
  }
  
  .bg-image {
    position: absolute;
    top: 20;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  .header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
    max-width: 1190px;
    margin: 0 auto;
    padding-left: 200px;
  }
  
  .user-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .user-text {
    color: #333;
  }
  
  .nickname {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .location {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .edit {
    color: #06c1ae;
    cursor: pointer;
    margin-left: 8px;
  }
  
  .user-stats {
    display: flex;
    gap: 24px;
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item .num {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .stat-item .label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
  }
  
  .nav-container {
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin-top: 20px;
    padding-left: 0;
  }
  
  .user-nav {
    display: flex;
    gap: 16px;
    border-bottom: none;
    padding: 0;
  }
  
  .nav-btn {
    padding: 10px 30px;
    font-size: 16px;
    background-color: #fff2e8;
    border: none;
    color: #ff9f1c;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
  }
  
  .nav-btn:hover {
    color: #fff;
    background-color: #ff9f1c;
  }
  
  .nav-btn.active {
    color: #fff;
    background-color: #ff9f1c;
    font-weight: normal;
  }
  
  .nav-btn.active::after {
    display: none;
  }
  </style>
  